<link href="/static/js/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/static/js/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.form-control {
  width:25%;
}
</style>
<body>
<div class="page-header" style="margin: 20px 0 20px;">
	<span style="margin:0 0 20px 10px;">当前位置：<a href="?g=menu&r=adAdmin/rolelist">角色列表</a> >> {if $pagetype == 1}添加角色{else}修改角色{/if}</span>
</div>
<form class="form-horizontal" action="{$formaction}" method="post">
	<input type="hidden" name="roleid" value={$roleid} />
	<div class="form-group">
    	<label for="role_name" class="col-sm-2 control-label">角色名称：</label>
	    <div class="col-sm-10">
	      <input type="text" class="form-control" id="role_name" name="role_name" placeholder="请输入角色名称" value="{$role_name}">
	    </div>
    </div>
    <div class="form-group">
    	<label for="desc" class="col-sm-2 control-label">描述：</label>
	    <div class="col-sm-10">
	    	<textarea class="form-control" id="desc" name="desc" rows="5" cols="32" placeholder="请输入角色描述信息">{$desc}</textarea>
	    </div>
    </div>
    <div class="form-group">
    	<label for="isshow" class="col-sm-2 control-label">状态：</label>
	    <div class="col-sm-10">
	    	<input name="status" value="1" type="radio" {if $status==1} checked="checked"{/if}/>启用
            <input name="status" value="0" type="radio" {if $status==0} checked="checked"{/if}/>禁用
	    </div>
    </div>
    <div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">提交</button>
		</div>
	</div>
</form>
</body>